import request from '@/utils/request'

//新增任务配置信息
export function createTaskCenterSetting(params) {
  return request({
    url: '/TaskSetting/CreateTaskCenterSetting',
    method: 'post',
    data: params,
  })
}

//编辑任务配置信息
export function modifiedTaskCenterSetting(params) {
  return request({
    url: '/TaskSetting/ModifiedTaskCenterSetting',
    method: 'post',
    data: params,
  })
}

//获取任务配置信息
export function getTaskCenterSetting(id) {
  var params = { settingId: id }
  return request({
    url: '/TaskSetting/GetTaskCenterSetting',
    method: 'get',
    data: params,
  })
}

//删除任务配置
export function deleteTaskCenterSetting(params) {
  return request({
    url: '/TaskSetting/DeleteTaskCenterSetting',
    method: 'post',
    data: params,
  })
}

//分页获取数据
export function getTaskCenterSettingPageList(params) {
  return request({
    url: '/TaskSetting/GetPageList',
    method: 'post',
    data: params,
  })
}

//获取尚未配置的ActionKey信息
export function getUnSettingActionKeys() {
  return request({
    url: '/TaskSetting/GetUnSettingActionKeys',
    method: 'get',
  })
}
